package com.xuecheng.content.service;

import com.xuecheng.api.content.model.dot.CourseBaseDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.qo.QueryCourseModel;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.content.entity.CourseBase;
/**
 * <p>
 * 课程基本信息 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-12-06
 */
public interface CourseBaseService extends IService<CourseBase> {

    /**
     * 分页条件查询课程基本信息数据
     * @param params PageRequestParams 分页封装数据
     * @param model QueryCourseModel 条件封装查询
     * @return  PageVO 分页结果数据封装
     */
    PageVO<CourseBaseDTO> queryCourseBaseList(PageRequestParams params, QueryCourseModel model,Long id );

    /**
     * 课程基础信息创建
     * @param dto CourseBaseDTO 课程基础信息dto封装类
     * @return CourseBaseDTO 课程基础信息dto封装类
     */
    CourseBaseDTO createCourseBase(CourseBaseDTO dto);

    CourseBaseDTO getCourseBase(Long courseBaseId, Long companyId);

    CourseBaseDTO modifyCourseBase(CourseBaseDTO voentity);

    void deleteCourse(Long courseBaseId, Long companyId);

    CourseBase getCourseBaseByBaseId(Long courseBaseId, Long companyId);

    /**
     * 根据课程Id提交课程信息
     * @param courseBaseId Long 课程ID值
     * @param companyId Long 教育机构ID值
     */
    void commitCourseBase(Long courseBaseId, Long companyId);


    void approve(CourseBaseDTO dto);
}
